Result: fail
Detail | Value |
---|---|
Returncode | 1 |
Time | 0:00:00.248488 |
Stdout |
Output v.a element 0: expected 100, got -858993460 Vertex shader: #version 150 #define DECLARE_VARYING(DIR, TYPE, NAME) DIR Blk { flat TYPE NAME; } blk #define VARYING(NAME) blk.NAME struct S { uvec4[4] a; vec2[2] b; int[3] c; }; in vec4 pos; DECLARE_VARYING(out, S, v); void main() { gl_Position = pos; for (int i = 0; i < 4; i++) { if (i < 4) VARYING(v).a[i] = uvec4(100, 200, 300, 400) + uint(i); if (i < 2) VARYING(v).b[i] = vec2(500.0, 600.0) + float(i); if (i < 3) VARYING(v).c[i] = 700 + i; } } Fragment shader: #version 150 #define DECLARE_VARYING(DIR, TYPE, NAME) DIR Blk { flat TYPE NAME; } blk #define VARYING(NAME) blk.NAME struct S { uvec4[4] a; vec2[2] b; int[3] c; }; DECLARE_VARYING(in, S, v); out vec4 color; void main() { bool pass = true; for (int i = 0; i < 3; i++) { if (i < 4 && VARYING(v).a[i] != uvec4(100, 200, 300, 400) + uint(i)) pass = false; if (i < 2 && VARYING(v).b[i] != vec2(500.0, 600.0) + float(i)) pass = false; if (i < 3 && VARYING(v).c[i] != 700 + i) pass = false; } if (pass) color = vec4(0.0, 1.0, 0.0, 1.0); else color = vec4(1.0, 0.0, 0.0, 1.0); } |
Stderr |
SWR detected AVX2 vert shader 0x7f1709296000 frag shader 0x7f1709294000 vert shader 0x7f1709292000 frag shader 0x7f1709290000 so shader 0x7f170928e000 fetch shader 0x7f170928c000 SWR destroy screen! |
Environment |
PIGLIT_SOURCE_DIR="/home/ilia/src/piglit" PIGLIT_PLATFORM="mixed_glx_egl" |
Command | /home/ilia/src/piglit/bin/ext_transform_feedback-structs struct-whole-array run interface -auto -fbo |
dmesg |